﻿CREATE TABLE [dbo].[RolePermission] (
    [Id]           UNIQUEIDENTIFIER NOT NULL,
    [RoleId]       UNIQUEIDENTIFIER NOT NULL,
    [PluginId]     UNIQUEIDENTIFIER NULL,
    [ObjectType]   NVARCHAR (MAX)   NULL,
    [ObjectId]     UNIQUEIDENTIFIER NULL,
    [Name]         NVARCHAR (MAX)   NOT NULL,
    [PermissionId] UNIQUEIDENTIFIER NOT NULL
);

